package avicit.bdp.dms.tdm.dto;

import avicit.bdp.common.base.BaseDTO;
import avicit.bdp.core.constant.Constants;
import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.LogField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

@ApiModel(value = "BdpAssetDownLoadDTO", description = "资产下载信息")
@Table(name = "bdp_asset_download")
public class BdpAssetDownloadDTO extends BaseDTO {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @LogField
    @ApiModelProperty(value = "主键")
    @FieldRemark(column = "id", field = "id", name = "主键")
    @Column(name = "id")
    @avicit.platform6.core.annotation.log.Id
    @javax.persistence.Id
    private String id;

    /** 资产id */
    @LogField
    @ApiModelProperty(value = "数据资产id", name = "assetId")
    @FieldRemark(column = "asset_id", field = "assetId", name = "数据资产id")
    private String assetId;

    /** 状态 */
    @LogField
    @ApiModelProperty(value = "状态", name = "status")
    @FieldRemark(column = "status", field = "status", name = "状态")
    private Integer status;

    /** 下载开始时间 */
    @ApiModelProperty(value = "下载开始时间", name = "beginTime")
    @FieldRemark(column = "begin_time", field = "beginTime", name = "下载开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date beginTime;

    /** 下载结束时间 */
    @ApiModelProperty(value = "下载结束时间", name = "endTime")
    @FieldRemark(column = "end_time", field = "endTime", name = "下载结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    /** 文件名称 */
    @ApiModelProperty(value = "文件名称", name = "fileName")
    @FieldRemark(column = "file_name", field = "fileName", name = "文件名称")
    private String fileName;

    /** 文件路径 */
    @ApiModelProperty(value = "文件名称", name = "filePath")
    @FieldRemark(column = "file_path", field = "filePath", name = "文件名称")
    private String filePath;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getAssetId() {
        return assetId;
    }

    public void setAssetId(String assetId) {
        this.assetId = assetId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
}
